package cn.haoxsf.app.common.api.enums;

import lombok.Getter;

/**
 * @program: rest
 * @description: 图片异常枚举
 * @author: Ele qvbanfm@qq.com
 * @create: 2019-10-22 15:17
 **/
@Getter
public enum ImagesExceptionEnum implements IServiceEnum {
    IMAGE_UPLOAD_ERROR(30,"图片上传出错"),
    THE_PICTURE_IS_EMPTY(31,"上传的图片为空"),
    IMAGES_NAME_IS_EMPTY(32,"图片不存在")
    ;
    private Integer code;
    private String msg;

    ImagesExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }
    @Override
    public String getMsg() {
        return msg;
    }
}
